#include <iostream>
#include <fstream>
#include <vector>
using namespace std;

int main()
{
  fstream input;
  input.open("Exercise18_7.dat", ios::in | ios::binary);

  input.seekg(-4 * 4, ios::end);

  while (!input.eof())
  {
    long number;
    input.read(reinterpret_cast<char*>(&number), sizeof(long));
    cout << number << " ";
  }

  input.close();

  return 0;
}
